package com.seqb.utils;

import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * @author lilinshen
 * @title 分页page工具类
 * @description 请填写相关描述
 * @date 2019/11/11
 */
@Data
public class PageUtils implements Serializable {
    private static final long serialVersionUID = 1L;
    private long count;
    private long pages;
    private List<?> data;
    private int code;
    private String msg;

    public PageUtils(List<?> data, long count) {
        this.data = data;
        this.count = count;
        this.code = 0;
        this.msg = "获取成功";
    }

    public PageUtils(List<?> data, long count, long pages) {
        this.data = data;
        this.count = count;
        this.pages = pages;
        this.code = 0;
        this.msg = "获取成功";
    }

    @Override
    public String toString() {
        return super.toString();
    }
}
